<table class="list">
	<tr>
		<th class="_20">Публ.</th>
		<th class="_20">Ред.</th>
		<th class="_20">Права</th>
		<th>Заголовок</th>
		<th>Местонахождение</th>
		<th class="_20">Удл.</th>
	</tr>
	{foreach from=$model item=article}
		<tr>
			<td class="center">
				{if $article->active == 1}
					<a href="{$base_url}&action=unactive&id={$article->id}"><img src="{$tpl_url}images/online.png" /></a>
				{else}
					<a href="{$base_url}&action=active&id={$article->id}"><img src="{$tpl_url}images/busy.png" /></a>
				{/if}
			</td>
			<td class="center">
				<a href="{$base_url}&action=edit&id={$article->id}"><img src="{$tpl_url}images/pencil.png"/></a>
			</td>
			<td class="center">
				<a href="{$base_url}&action=rights&id={$article->id}"><img src="{$tpl_url}images/users.png"/></a>
			</td>
			<td>
				{$article->title}
			</td>
			<td>
				{foreach from=$article->pages() item=page}
				<a href="?mudule=pages&action=page_edit&id={$page->id}"><img src="{$tpl_url}images/_pencil.png" alt=""/></a>
					<a href="{$page->url}">{$page->title}</a>
				{/foreach}
			</td>
			<td class="center">
				<a onclick="if(confirm('Вы дейтвительно желаете удалить эту статью?')) location.href = this.href; return false;" href="{$base_url}&action=delete&id={$article->id}"><img src="{$tpl_url}images/trash.png"/></a>
			</td>
		</tr>
	{/foreach}
</table>